//
//  IntersectionDetailPage.h
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 9/1/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SubSystem.h"
#import "Agency.h"
#import "Intersection.h"
#import "TableSection.h"
#import "XMLParser.h"
#import "CustomizedBarButtonItem.h"
#import "SignalDetailViewController.h"
#import "LinkDetailPage.h"
#import "IntersectionLocationEditMapViewController.h"

@interface IntersectionDetailPage : UITableViewController<UIAlertViewDelegate, UITextViewDelegate>

@property (nonatomic, retain) NSMutableArray * sections;
@property (nonatomic,retain) TableSection *nameSection;
@property (nonatomic,retain) TableSection *coordinateSection;
@property (nonatomic,retain) TableSection *timingPatternListSection;
@property (nonatomic,retain) TableSection * linkListSection;

@property (nonatomic,retain) UITextView * intersectionNameTextView;
@property (nonatomic,retain) UITextView * latitudeTextView;
@property (nonatomic,retain) UITextView * longitudeTextView;

@property (nonatomic,retain) SubSystem *subSystem;
@property (nonatomic,retain) Agency *agency;
@property (nonatomic,retain) Intersection *intersection;
@property (nonatomic,retain) NSArray *timingPatternList;
@property (nonatomic,retain) NSMutableArray * linkList;


- (id) initWithNibNameAndIntersection:(NSString *)nibName agency:(Agency *)agency subSystem:(SubSystem *)subSystem intersection:(Intersection *) intersection bundle:(NSBundle *)nibBundle;

@end
